<!-- <div #networkGraph class='network-graph-container'  fxLayout="row" fxLayoutAlign="center center" >
  <svg id='d3-graph' #networkGraph></svg>
</div> -->
<!-- <div
  class="network-graph-container"
  appNetworkGraph
  fxLayout="row"
  fxLayoutAlign="center center"
  [miserables]="miserables"
>
  <svg></svg>
</div> -->
<div class="wapper">
  <div class="network-graph-container">
    <div
      appNetworkGraph
      fxLayout="row"
      fxLayoutAlign="center center"
      [miserables]="miserables"
      [histroyNode]="histroyNode"
      (emmitEvent)="graphCustomEvent($event)"
    >
      <svg id="d3-graph">
        <defs>
          <radialGradient
            id="grad1"
            cx="0.5"
            cy="0.5"
            r="0.7"
            fx="0.5"
            fy="0.5"
          >
            <stop offset="0" stop-color="#bdc3c7" />
            <stop offset="0.8" stop-color="#2c3e50" />
            <stop offset="1" stop-color="#bdc3c7" />
          </radialGradient>
          <radialGradient
            id="grad2"
            cx="0.5"
            cy="0.5"
            r="0.7"
            fx="0.5"
            fy="0.5"
          >
            <stop offset="0" stop-color="#bdc3c7" />
            <stop offset="0.8" stop-color="#f12711" />
            <stop offset="1" stop-color="#bdc3c7" />
          </radialGradient>
          <radialGradient
            id="grad3"
            cx="0.5"
            cy="0.5"
            r="0.7"
            fx="0.5"
            fy="0.5"
          >
            <stop offset="0" stop-color="#bdc3c7" />
            <stop offset="0.8" stop-color="#f79d00" />
            <stop offset="1" stop-color="#bdc3c7" />
          </radialGradient>
        </defs>
      </svg>
    </div>
  </div>
  <div class="cloudword">
    <app-cloudword></app-cloudword>
  </div>
  <div class="btns">
    <ng-container *ngFor="let h of histroy; let index = index">
      <button nz-button nzShape="circle" (click)="onHistroyBtnClick(index, h)">
        {{ !!h.data.source ? h.data.source?.label.slice(0, 1) : "所有" }}
      </button>
    </ng-container>
  </div>
</div>
